package org.dromara.system.controller.xiaofu;

import lombok.RequiredArgsConstructor;
import org.dromara.common.core.domain.R;
import org.dromara.common.web.core.BaseController;
import org.dromara.system.domain.query.XfCompanyDimensionStatisticsQuery;
import org.dromara.system.domain.vo.XfCompanyDimensionStatisticsVo;
import org.dromara.system.service.IXfCompanyDimensionStatisticsService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/xiaofu/company/dimensionStatistics")
public class XfCompanyDimensionStatisticsController extends BaseController {

    private final IXfCompanyDimensionStatisticsService xfCompanyDimensionStatisticsService;

    /**
     * 查询企业维度评分统计列表
     */
    @GetMapping("/list")
    public R<List<XfCompanyDimensionStatisticsVo>> list(XfCompanyDimensionStatisticsQuery query) {
        List<XfCompanyDimensionStatisticsVo> list = xfCompanyDimensionStatisticsService.queryList(query);
        return R.ok(list);
    }
}
